package com.model.basemodel.http.apiconfig

/**
 * BaseModel
 * Created by WZ.
 */
object HttpConfig {
    val baseUrl = hashMapOf(
        Pair("test1", "http://jsonplaceholder.typicode.com"),
        Pair("wx", "https://wx.xxxxxxx.com"),
        Pair("im", "https://im.xxxxxx.com"),
        Pair("ws", "wss://xxxx.xxxx.com/ws")
    )
    val HEADER_KEY = "url_name"
    val IS_TESTING_SERVER = false
    val IS_UAT = false
    val TEST_SERVER = "http://jsonplaceholder.typicode.com"
    val ONLINE_SERVER = "http://baidu.com"
    val SERVER_URL = if (IS_TESTING_SERVER)
        TEST_SERVER
    else
        ONLINE_SERVER

    fun getServiceHost(): String {
        return SERVER_URL
    }

}
